#ifndef util_h
#define util_h

int Hex2Char(unsigned int fromi, unsigned char* toc);
int Char2Hex(unsigned char fromc, unsigned int* toi);

int Bitstr2ByteArr(unsigned char* bs, unsigned char* ba);
int ByteArr2Bitstr(unsigned char* ba, unsigned char* bs);

int Int2ByteArr(unsigned int i, unsigned char* ba);
int ByteArr2Int(unsigned char* ba, unsigned int* i);

#endif
